﻿// =================================================================== 
// 项目说明
//====================================================================
// SunCity@Copy Right 2006-2008
// 文件： Category.cs
// 项目名称：
// 创建时间：2015/3/18
// 负责人：
// ===================================================================
using System;
namespace EMS20.Entity
{
	/// <summary>
	///Category数据实体
	/// </summary>
	[Serializable]
	public class CategoryEntity
	{
		#region 变量定义
		///<summary>
		///自增ID
		///</summary>
		private int _c_id;
		///<summary>
		///类别
		///</summary>
		private int _c_type;
		///<summary>
		///类别标题
		///</summary>
		private string _c_title = String.Empty;
		///<summary>
		///父类别ID
		///</summary>
		private int _parent_id;
		#endregion
		
		#region 构造函数
		///<summary>
		///
		///</summary>
		public CategoryEntity()
		{
		}
		///<summary>
		///
		///</summary>
		public CategoryEntity
		(
			int c_id,
			int c_type,
			string c_title,
			int parent_id
		)
		{
			_c_id      = c_id;
			_c_type    = c_type;
			_c_title   = c_title;
			_parent_id = parent_id;
			
		}
		#endregion
		
		#region 公共属性
		
		///<summary>
		///自增ID
		///</summary>
		public int c_id
		{
			get {return _c_id;}
			set {_c_id = value;}
		}

		///<summary>
		///类别
		///</summary>
		public int c_type
		{
			get {return _c_type;}
			set {_c_type = value;}
		}

		///<summary>
		///类别标题
		///</summary>
		public string c_title
		{
			get {return _c_title;}
			set {_c_title = value;}
		}

		///<summary>
		///父类别ID
		///</summary>
		public int parent_id
		{
			get {return _parent_id;}
			set {_parent_id = value;}
		}
	
		#endregion
		
	}
}
